import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 故障分类
 * */
// 创建
export const machinemanagerAlternateCreate = (data) => postRequest('/machinemanager/alternate/create', data);
export const machinemanagerAlternateHasProcessAuth = (data) => postRequest('/machinemanager/alternate/has-process-auth', data);

// 更新
export const machinemanagerAlternateUpdate = (data) => putRequest('/machinemanager/alternate/update', data);

// 删除
export const machinemanagerAlternateDelete = (params) => deleteRequest('/machinemanager/alternate/delete', params);

// 获得
export const machinemanagerAlternateGet = (params) => getRequest('/machinemanager/alternate/get', params);

// 获得分页
export const machinemanagerAlternatePage = (params) => getRequest('/machinemanager/alternate/page', params);
export const achinemanagerAlternateUpdateAuditState = (params) => postRequest('/achinemanager/alternate/update-audit-state', params);
